@layout("/common/_container.html",{bg:"bg-white",plugins:["formSelects"],js:["/assets/modular/system/lessee/form.js"]}){


<form id="lesseeForm" lay-filter="lesseeForm" class="layui-form model-form">
    <input name="id" type="hidden" value="${lessee.id}"/>

    <div class="layui-form-item">
        <label class="layui-form-label">租户名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="name" placeholder="使用本账号体系的第三方公司企业名称。将创建一个新的部门组织结构。" type="text" class="layui-input" maxlength="32"
                   lay-verify="required"
                   value="${lessee.name}"
                   required/>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">租号编号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="code" placeholder="使用本账号体系的第三方公司企业编码" type="text" class="layui-input" maxlength="20"
                   lay-verify="required"
                   value="${lessee.code}" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="checkbox"  ${lessee.status==1?'checked':''} name="status" lay-skin="switch" lay-filter="status"  lay-text="启用|禁用">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="memo" placeholder="请输入内容" class="layui-textarea">${lessee.memo}</textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">后台项目</label>
        <div class="layui-input-block">
            <select name="projects" xm-select="projects">

                @if(isNotEmpty(refprojects)){
                @for(item in refprojects){
                <option value="${item.projectId}" ${item.selected}>${item.projectName}</option>
                @}
                @}
            </select>

        </div>
    </div>


    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
